<template>
  <el-config-provider :locale="zhCn">
    <router-view />
    <back-home v-show="showVisible" />
  </el-config-provider>
</template>

<script setup lang="ts">
import { computed } from "vue";
import { useRoute } from "vue-router";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import BackHome from "@/components/BackHome.vue";

const route = useRoute();
const showVisible = computed(() => {
  const whitePath = ["/", "/index"];
  return !whitePath.includes(route.path);
});
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  padding: 10px;
}
</style>
